/*
 * 
 * Libman
 * 
 * Daniel Kaufmann, Martin Lang, Simon Moosbrugger,
 * Stefan Mayer, Stephan Halbeisen
 * 
 */
package application.server;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.server.ServerNotActiveException;

import application.exceptions.DataInconsistentException;
import application.exceptions.DatabaseException;
import application.exceptions.ExemplarNotFoundException;
import application.exceptions.InsufficientClientRightsException;
import application.exceptions.LoanNotFoundException;
import application.exceptions.SessionException;

/**
 * The Interface MediumReturnRemote.
 */
public interface MediumReturnRemote extends Remote {
	
	/**
	 * Return exemplar.
	 * 
	 * @param invNo
	 *            the inv no
	 * @throws RemoteException
	 *             the remote exception
	 * @throws DataInconsistentException
	 *             the data inconsistent exception
	 * @throws LoanNotFoundException
	 *             the loan not found exception
	 * @throws DatabaseException
	 *             the database exception
	 * @throws ExemplarNotFoundException
	 *             the exemplar not found exception
	 */
	public void returnExemplar(String sessionId, String invNo) throws RemoteException,
			DataInconsistentException, LoanNotFoundException,
			DatabaseException, ExemplarNotFoundException, SessionException, InsufficientClientRightsException, ServerNotActiveException;
}
